public JsonResult InsertUpdateVentas(Annies.Entities.Ventas obj) { var bussingLogic = new Annies.BusinessLogic.Ventas(); obj.Auditoria = new Auditoria { UsuarioCreacion = User.Identity.Name }; var response = bussingLogic.InsertUpdateVentas(obj); return(Json(response)); }
public JsonResult InsertUpdateVentas(Annies.Entities.Ventas obj) { var bussingLogic = new Annies.BusinessLogic.Ventas(); obj.Auditoria = new Auditoria { UsuarioCreacion = User.Identity.Name, UsuarioModificacion = User.Identity.Name }; obj.Operacion = new Operacion { TipoOperacion = "V", Opcion = obj.Cod_Venta == null ? "I" : "U" }; var response = bussingLogic.InsertUpdateVentas(obj); return(Json(response)); }