Example #1
0
 public bool Guardar(GiradoPersona entity)
 {
     try{
         context.Add(entity);
         context.SaveChanges();
     }catch (System.Exception) {
         return(false);
     }
     return(true);
 }
 public ActionResult Post([FromBody] GiradoPersona giradoPersona)
 {
     return(Ok(giradoPersonaService.Guardar(giradoPersona)));
 }
Example #3
0
 public bool Actualizar(GiradoPersona entity)
 {
     throw new System.NotImplementedException();
 }
 public bool Guardar(GiradoPersona entity)
 {
     return(giradoPersonaRepository.Guardar(entity));
 }