// GET: TiposervicoController/Delete/5 public ActionResult Delete(int id) { Tiposervico tiposervico = _tiposervicoService.Obter(id); TiposervicoModel tiposervicoModel = _mapper.Map <TiposervicoModel>(tiposervico); return(View(tiposervicoModel)); }
public void Editar(Tiposervico tiposervico) { _context.Update(tiposervico); _context.SaveChanges(); }
public int Inserir(Tiposervico tiposervico) { _context.Add(tiposervico); _context.SaveChanges(); return(tiposervico.Id); }