public IHttpActionResult Post(ChargesType ChargesType)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            _ChargesTypeService.Create (ChargesType);
             

            return Created(ChargesType);
        }
Exemplo n.º 2
0
 public static ChargesType ToEntity(this ChargesTypeModel model, ChargesType destination)
 {
     return(AutoMapperConfiguration.Mapper.Map(model, destination));
 }
Exemplo n.º 3
0
 public static ChargesTypeModel ToModel(this ChargesType entity)
 {
     return(AutoMapperConfiguration.Mapper.Map <ChargesType, ChargesTypeModel>(entity));
 }