/// <summary> /// Returns firm data prior to the modification. /// </summary> /// <returns>the firm data object</returns> private tFirmy GetFirmData() { int?userId = service.GetClientId(User.Identity.Name); if (userId.HasValue) { tFirmy firm = service.GetFirmData(userId.Value); return(firm); } return(null); }