public string InstSubCategoria(ESubCateoria SubCategoria, string Usuario) { try { return(Data.InstSubCategoria(SubCategoria, Usuario)); } catch (Exception Exception) { throw Exception; } }
public void InstSubCategoria(ESubCateoria SubCategoria) { try { var Usuario = Authentication.UserLogued.Usuario; SubCategoria.Empresa.Id = Authentication.UserLogued.Empresa.Id; Utils.WriteMessage(Mantenimiento.InstSubCategoria(SubCategoria, Usuario)); } catch (Exception Exception) { Utils.Write( ResponseType.JSON, "{ Code: 2, ErrorMessage: \"" + Exception.Message + "\" }" ); } }