public bool SetPetitionOnProcess(int petitionID) { try { _petitionDal.SetPetitionOnProcess(petitionID); var petition = _petitionDal.GetPetition(petitionID); User user = _accountDal.GetUser(petition.UserID); MailHelper.SendPetitionOnProcess(petition, user.Email); return(true); } catch { return(false); } }