Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created July 11, 2011 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagda1/1075556 to your computer and use it in GitHub Desktop.
Save dagda1/1075556 to your computer and use it in GitHub Desktop.
Example controller actopm
[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