public string InsertDBWithLogin(string jsonValue, string loginValues) { CourseModal courseModal = Serializer.GetDeserialized<CourseModal>(jsonValue); ILoginTableModal loginTable = Serializer.GetDeserialized<LoginTableModal>(loginValues); IUpdaterDetailTableModal updateModal = new UpdaterDetailTableModal(); updateModal.CreatedById = updateModal.LastModifiedId = loginTable.Id; updateModal.CreatedTime = updateModal.LastModifiedTime = DateTime.Now; courseModal.UpdateModal = updateModal; CourseAccessLayer courseLayer = new CourseAccessLayer(courseModal); bool check = courseLayer.InsertDB(Constants.SP_InsertCourse); return Serializer.GetSerialized<bool>(check); }