Beispiel #1
0
        public Call SaveCall(Call call)
        {
            if (String.IsNullOrWhiteSpace(call.Number))
            {
                call.Number = GetCurrentCallNumber(call.DepartmentId);
            }

            if (String.IsNullOrWhiteSpace(call.Name))
            {
                call.Name = "New Call " + DateTime.UtcNow.ToShortDateString();
            }

            _callsRepository.SaveOrUpdate(call);

            //return GetCallById(call.CallId);
            return(call);
        }