public bool DeleteUOMMastersDetails(long[] Id) { try { IList <UOMMaster> UOMMasterDetails = PSF.GetListByIds <UOMMaster>(Id); PSF.DeleteAll <UOMMaster>(UOMMasterDetails); return(true); } catch (Exception) { throw; } }
public bool DeleteUserAppRole(long[] id) { try { IList <UserAppRole> UserAppRole = PSF.GetListByIds <UserAppRole>(id); PSF.DeleteAll <UserAppRole>(UserAppRole); return(true); } catch (Exception) { throw; } }
public IList <Menu> GetMenusById(long[] Ids) { try { if (Ids != null && Ids.Count() > 0) { return(PSF.GetListByIds <Menu>(Ids)); } else { throw new Exception("Id is required and it cannot be 0"); } } catch (Exception) { throw; } }
public bool DeleteTicketComments(long[] Ids) { try { if (Ids != null && Ids.Length > 0) { IList <TicketComments> list = PSF.GetListByIds <TicketComments>(Ids); PSF.DeleteAll <TicketComments>(list); return(true); } else { return(false); } } catch (Exception) { throw; } }