Created
July 11, 2011 08:51
-
-
Save dagda1/1075556 to your computer and use it in GitHub Desktop.
Example controller actopm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpGet] | |
public virtual C2JsonResult Edit(Guid uid) | |
{ | |
var observation = _commonDao.GetByExpression<Observation>(x => x.Uid == uid); | |
var model = Mapper.Map<Observation, ObservationDto>(observation); | |
return new C2JsonResult{Data = model}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment