/// <summary> /// Adds mapping to project mapping table /// </summary> /// <param name="mappingModel">project mapping data</param> /// <returns>Database operation details</returns> public OperationDetails AddProjectMapping(ProjectMappingModel mappingModel) { log.Debug(MethodHelper.GetCurrentMethodName() + " Method execution start."); OperationDetails operationDetails = null; try { using (UserDB userDB = new UserDB()) { operationDetails = userDB.AddProjectMapping(mappingModel); return(operationDetails); } } catch (Exception exception) { errorLog.Fatal("Exception " + exception.Message + "\n" + exception.StackTrace); throw; } finally { log.Debug(MethodHelper.GetCurrentMethodName() + " Method execution end."); } }