public bool AddRoleDetail(RequestBase req, string roleName) { bool response = false; try { SqlSvrDAL sqlDAL = new SqlSvrDAL(req.ClientInfo); response = sqlDAL.AddRole(roleName); } catch (Exception ex) { //LogHelper.AddLog("UserController,AddRoleDetail", ex.Message, ex.StackTrace, "HCL.Academy.Service", req.ClientInfo.emailId); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); } return(response); }
public bool AddRole(RoleAssignmentRequest req) { bool flag = false; try { SqlSvrDAL dal = new SqlSvrDAL(req.ClientInfo); flag = dal.AddRole(req.Email, req.UserId, req.RoleId, req.Ismandatory, req.Lastdayofcompletion); } catch (Exception ex) { //LogHelper.AddLog("UserController,AddRole", ex.Message, ex.StackTrace, "HCL.Academy.Service", req.ClientInfo.emailId); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); } return(flag); }