public async Task <IHttpActionResult> Edit(TipoDocSoporte model) { try { db.Entry(model).State = EntityState.Modified; await db.SaveChangesAsync(); AddLog("", model.Id, model); return(Ok(true)); } catch (Exception ex) { return(InternalServerError(ex)); } }
public async Task <IHttpActionResult> Create(TipoDocSoporte model) { try { db.TipoDocSoporte.Add(model); await db.SaveChangesAsync(); AddLog("", model.Id, model); return(Ok(true)); } catch (Exception ex) { return(InternalServerError(ex)); } }