public void DeleteUploadedFileById(Documents doc) { if (doc.Upload_Id > 0) { PSF.Delete <Documents>(doc); } }
public bool DeleteUserAppRole(long id) { try { UserAppRole UserAppRole = PSF.Get <UserAppRole>(id); PSF.Delete <UserAppRole>(UserAppRole); return(true); } catch (Exception) { throw; } }
public long DeleteMenufunction(Menu mu) { try { if (mu != null) { PSF.Delete <Menu>(mu); } else { throw new Exception("Value is required and it cannot be null.."); } return(0); } catch (Exception) { throw; } }