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