コード例 #1
0
 public bool Guardar(Girado entity)
 {
     try{
         context.Add(entity);
         context.SaveChanges();
     }catch (System.Exception) {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 public bool Guardar(Girado entity)
 {
     return(giradoRepository.Guardar(entity));
 }
コード例 #3
0
 public bool Actualizar(Girado entity)
 {
     throw new System.NotImplementedException();
 }
コード例 #4
0
 public ActionResult Post([FromBody] Girado girado)
 {
     return(Ok(giradoService.Guardar(girado)));
 }